<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>条件判断语句</title>
</head>
<body>

    <script type="text/javascript">
        // 单路分支
        //声明一个变量
        var age = 17;
        if(age>16){
        	alert('ture');
        }

        //双路分支
        var name =  'Lily';
        if(name=='Lily'){
        	alert('She is Lily');
        }else{
        	alert('false');
        }

        //多路分支
        var score = 48;
        if(score>90){
        	alert('A');
        }else if(score>80){
        	alert('B');
        }else if(score>70){
        	alert('C');
        }else if(score>60){
        	alert('D');
        }else{
        	alert('不及格');
        }




    </script>
	
</body>
</html>